package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyHouseFacilityMapper;
import com.ruoyi.system.domain.HyHouseFacility;
import com.ruoyi.system.service.IHyHouseFacilityService;

/**
 * 房源设施Service业务层处理
 * 
 * @author wangjiangbo
 * @date 2025-01-10
 */
@Service
public class HyHouseFacilityServiceImpl implements IHyHouseFacilityService 
{
    @Autowired
    private HyHouseFacilityMapper hyHouseFacilityMapper;

    /**
     * 查询房源设施
     * 
     * @param id 房源设施主键
     * @return 房源设施
     */
    @Override
    public HyHouseFacility selectHyHouseFacilityById(Long id)
    {
        return hyHouseFacilityMapper.selectHyHouseFacilityById(id);
    }

    /**
     * 查询房源设施列表
     * 
     * @param hyHouseFacility 房源设施
     * @return 房源设施
     */
    @Override
    public List<HyHouseFacility> selectHyHouseFacilityList(HyHouseFacility hyHouseFacility)
    {
        return hyHouseFacilityMapper.selectHyHouseFacilityList(hyHouseFacility);
    }

    /**
     * 新增房源设施
     * 
     * @param hyHouseFacility 房源设施
     * @return 结果
     */
    @Override
    public int insertHyHouseFacility(HyHouseFacility hyHouseFacility)
    {
        return hyHouseFacilityMapper.insertHyHouseFacility(hyHouseFacility);
    }

    /**
     * 修改房源设施
     * 
     * @param hyHouseFacility 房源设施
     * @return 结果
     */
    @Override
    public int updateHyHouseFacility(HyHouseFacility hyHouseFacility)
    {
        return hyHouseFacilityMapper.updateHyHouseFacility(hyHouseFacility);
    }

    /**
     * 批量删除房源设施
     * 
     * @param ids 需要删除的房源设施主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseFacilityByIds(Long[] ids)
    {
        return hyHouseFacilityMapper.deleteHyHouseFacilityByIds(ids);
    }

    /**
     * 删除房源设施信息
     * 
     * @param id 房源设施主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseFacilityById(Long id)
    {
        return hyHouseFacilityMapper.deleteHyHouseFacilityById(id);
    }
}
